package edu.example.house.serlvet;

import edu.example.common.PowerCheck;
import edu.example.house.dao.housemanageDao;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@WebServlet("/buildingList")
public class BuildingListServlet extends HttpServlet {
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.setAttribute("list",new housemanageDao().getList());
        request.getRequestDispatcher("/buildingmanage/building.jsp").forward(request, response);
    }
}
